// 食疗仿列表数据
import request from "../utils/request";

// 食疗仿列表数据
export const getFoodList = (city, page) => request({
    url: '/foods/list',
    data: {
        city,
        page
    }
})

// 食疗仿类型列表数据
export const foodType = (num) => request({
    url: '/foods/list/type',
    data: { type: num - 1 }
})

// 食疗仿详情数据
export const getFoodDetail = (id) => request({
    url: '/foods/list/detail',
    data: {
        id
    }
})